package com.by.zhdoctor.repository;

import com.by.zhdoctor.domain.JTZhengXiang;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Spring Data JPA repository for the JTZhengXiang entity.
 */
@SuppressWarnings("unused")
public interface JTZhengXiangRepository extends JpaRepository<JTZhengXiang,Long> {

//    @Query(value = "select jtzx from JTZhengXiang jtzx where jtzx.zhengxiangming.zxmName=?1 and jtzx.zhengxiangming.bingming.id=?2 ")
//        List<JTZhengXiang> findAllByZXMName(String zxmName,bingming_id);

    List<JTZhengXiang> findAllByZhengxiangmingZxmNameAndZhengxiangmingBingmingBmName(String zxmName, String bmName);

}
